﻿using SQLite;

namespace FireChat.Server.Database.Table.Accounts;


/// <summary>
/// 账户信息
/// </summary>
[Table("Account")]
internal class AccountData : DataTableBase
{
    /// <summary>
    /// 用户名
    /// </summary>
    [Column("Username")]
    [NotNull]
    public string Username { get; set; } = "";


    /// <summary>
    /// 密码
    /// </summary>
    [Column("Password")]
    [NotNull]
    public string Password { get; set; } = "";


    /// <summary>
    /// 邮箱
    /// </summary>
    [Column("Email")]
    public string? Email { get; set; }
}